<template>
<section @click="clickCurrent('current')" @mousedown="clickCurrent('dragging')">
    <div :class="['custorm--modelbox', 'graphicvideo-show', (custormCurrent == custormIndex)?'drag active':'drag']">
        <div v-if="custormItemData.params.isshow == '2'" class="noshow" v-bind:style="{'background-image':`url(${getPath('noshow.png')})`}"></div>
        <div class="es-video-box">
            <div :class="['es-video',`style${custormItemData.style.display}`]" v-bind:style="{'background-image':`url(${getPath(custormItemData.params.videocover.file_path)})`}">
            </div>
            <div class="after" v-bind:style="{'background-image':`url(${getPath('video_play.png')})`}"></div>
        </div>
        <div class="btn-edit-del" @click="delCurrent"><span class="btn-del icon iconfont icon-close"></span></div>
    </div>
</section>
</template>

<script>
import defaultConfig from './utils/showConfig'
export default {
  mixins: [defaultConfig.mixins],
  props: {
    defaultConfig: {
      type: Object,
      default: function() {
        return defaultConfig
      }
    }
  },
  methods: {

  }
}
</script>

<style lang="scss" scoped>
.custorm--modelbox.graphicvideo-show {
    .es-video {
        height: 211px;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 50%;
    }

    .es-video-box {
        overflow: hidden;
    }

    .es-video-box .after {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-position: 50%;
        background-repeat: no-repeat;
        background-size: 60px;
        z-index: 2;
    }

    .es-video.style2 {
        height: 281px;
    }

    .es-video.style3 {
        height: 375px;
    }
}
</style>
